## IN WORKING DIRECTORY
# convert .pir files into .fasta

$ find . -name "*.faa" -print | xargs sed "s/\*//g" 

# create new file containing annotations and accessions

$ grep “^>” *.faa > annotations.txt

# remove annotations leaving just e.g. '>accession.1_1'

$ find . -name "*.faa" -print | xargs sed -i 's/\s#.*//g'
